﻿using System;

using NUnit.Framework;

using octalforty.Syndication.Core.Rss;

namespace octalforty.Syndication.UnitTests.Core.Rss
{
    /// <summary>
    /// <see cref="RssFeed"/> unit tests.
    /// </summary>
    [TestFixture()]
    public class RssFeedTestFixture
    {
        [Test()]
        public void NoArgumentConstructor()
        {
            RssFeed rssFeed = new RssFeed();

            Assert.IsNotNull(rssFeed.Channel);
        }

        [Test()]
        [ExpectedException(typeof(ArgumentNullException))]
        public void ChannelCannotBeNull()
        {
            RssFeed rssFeed = new RssFeed();
            rssFeed.Channel = null;
        }
    }
}
